﻿<html><body><?phpif($data==NULL){    echo "<h2>Dada Empty</h2>";}else{    echo "<table>          <tr>            <td>id</td>            <td>Title</td>          </tr>";    foreach($data as $item){        echo "<tr>";        echo "<td>".$item['Catalog']['id']."</td>";        echo "<td><a href='books/view/".$item['Catalog']['id']."' >".$item['Catalog']['tendanhmuc']."</a></td>";        echo "</tr>";    }}?></body></html>